import Layout from "@/layout";

/** 
 * 采购模块路由配置
 * 路径: /purchase
 * 包含功能: 采购订单、装载单管理等
 */
export default {
    path: "/purchase", // 基础路径
    component: Layout, // 使用布局组件
    redirect: "/purchase/purchaseOrders", // 默认重定向到采购订单页
    alwaysShow: true, // 始终显示根菜单
    name: "purchase", // 路由名称
    meta: {
        title: "采购管理", 
        icon: "shopping" // 建议使用购物车图标
    },
    children: [
        // 采购订单管理
        {
            path: "/purchase/purchaseOrders",
            component: () => import("@/views/purchase/purchaseOrders.vue"),
            name: "purchaseOrders",
            meta: { 
                title: "采购订单", 
                icon: "personnel" 
            }
        },
        // 装载单管理
        {
            path: "/purchase/containerLoading",
            component: () => import("@/views/purchase/containerLoadingList.vue"),
            name: "containerLoading",
            meta: { 
                title: "装柜清单", 
                icon: "personnel" 
            }
        }
    ]
};